//bool, ObjList objs, str OUT reasonText

Building this;

this = objs[0].AsBuilding();

if(!.IsValid()) return false;

if(MapSize >= 32000) return false;

if(.settlement.gold < cmdcost_gold){
	reasonText = rollover(this,false) + "\n<color 255 0 0>";
	reasonText = reasonText + Translate("Not enough gold");
	return false;
}

return true;